package com.ddwl.message.service;

import com.ddwl.schema.bo.base.PageBo;
import com.ddwl.schema.bo.message.AdvertBo;
import com.ddwl.schema.vo.base.PageVo;
import com.ddwl.schema.vo.message.AdvertVo;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/8/14 17:26
 */
@Service
public class AdvertService {

    public AdvertVo index(String position) {
        return null;
    }

    public PageVo<AdvertVo> page(PageBo<AdvertBo> pageBo) {
        PageVo<AdvertVo> pageVo = new PageVo<>();
        BeanUtils.copyProperties(pageBo, pageVo);
        return pageVo;
    }

    public AdvertVo save(AdvertBo bo) {
        return null;
    }
}
